package com.marmot.cloud.framework.orm.jpa.entity;


import com.marmot.cloud.framework.orm.jpa.comment.annotation.Comment;
import jakarta.persistence.Column;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.MappedSuperclass;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

@Data
@MappedSuperclass
@EqualsAndHashCode(callSuper=true)
@EntityListeners(AuditingEntityListener.class)
public abstract class BaseTenantJpaEntity extends BaseJpaEntity {


    @Column(length = 36)
    @Comment(value = "租户Id")
    protected String tenantId;

}
